<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>扫码开锁</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no,address=no" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="../css/common.css" />
    <link rel="stylesheet" href="../css/y_index.css" />
</head>

<body>
    <div class="ptb30 col9 font13 bw plr24">
        <p class="mb20 col3 font15">设备编号：4564654665465</p>
        <p class="mb10 color2">库存：52</p>
        <p class="mb10">地址：广东省东莞市南城区高盛科技园</p>
    </div>
    <div class="bw mt20 plr24 flex_a">
        <span class="col3 font15">修改库存：</span>
        <input type="number" placeholder="请输入库存" class="h100 col9 font15 flex1" oninput="this.value = this.value.replace(/\D/g,'')" id="num">
    </div>
    <div class="mt20 bw plr24 pt30">
        <p class="col3 font15">开锁目的</p>
        <div class="flex_a bdb">
            <label class="flex_a ptb30 mr70">
                <input type="radio" name="radio" hidden class="radioBox" value="1" checked>
                <span class="roudBox border"></span>
                <span class="font15 col3 ml20">补货</span>
            </label>
            <label class="flex_a ptb30 mr70">
                <input type="radio" name="radio" hidden class="radioBox" value="2">
                <span class="roudBox border"></span>
                <span class="font15 col3 ml20">机器故障</span>
            </label>
            <label class="flex_a ptb30">
                <input type="radio" name="radio" hidden class="radioBox" value="3">
                <span class="roudBox border"></span>
                <span class="font15 col3 ml20">其他</span>
            </label>
        </div>
        <div>
            <input type="text" placeholder="请输入开锁目的" class="h100 font15 col9 w100" id="reason">
        </div>
    </div>
    <div class="main_btn tap" style="margin-top: .6rem">保存</div>
</body>

</html>
<script type="text/javascript" src="../js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../js/dlc.js"></script>
<script>
$(function() {
    //确定
    $('.main_btn').click(function() {
        var num = $('#num').val();
        var reason = $('#reason').val();
        var status = $('.radioBox:checked').val();
        console.log(status);
        if (isNull(num)) {
            dlctipbox.show('请输入库存');
        } else if (isNull(reason)) {
            dlctipbox.show('请输入开锁目的');
        } else {

        }
    })
})
</script>